﻿<%@ Control Language="C#" ClassName="PrescriptionFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataCreateDate" runat="server" Text="Create Date:" AssociatedControlID="dataCreateDate" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCreateDate" Text='<%# Bind("CreateDate", "{0:dd-MMM-yyyy}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataCreateDate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataCreateDate" runat="server" Display="Dynamic" ControlToValidate="dataCreateDate" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataPrescriptionId" runat="server" Text="Prescription Id:" AssociatedControlID="dataPrescriptionId" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataPrescriptionId" Text='<%# Bind("PrescriptionId") %>' MaxLength="20"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataPrescriptionId" runat="server" Display="Dynamic" ControlToValidate="dataPrescriptionId" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataPatientCode" runat="server" Text="Patient Code:" AssociatedControlID="dataPatientCode" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataPatientCode" Text='<%# Bind("PatientCode") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataPatientCode" runat="server" Display="Dynamic" ControlToValidate="dataPatientCode" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataPatientName" runat="server" Text="Patient Name:" AssociatedControlID="dataPatientName" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataPatientName" Text='<%# Bind("PatientName") %>' MaxLength="100"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataPatientName" runat="server" Display="Dynamic" ControlToValidate="dataPatientName" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataDeliveryDate" runat="server" Text="Delivery Date:" AssociatedControlID="dataDeliveryDate" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataDeliveryDate" Text='<%# Bind("DeliveryDate", "{0:dd-MMM-yyyy}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataDeliveryDate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataDeliveryDate" runat="server" Display="Dynamic" ControlToValidate="dataDeliveryDate" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataAddress" runat="server" Text="Address:" AssociatedControlID="dataAddress" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAddress" Text='<%# Bind("Address") %>' MaxLength="50"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataDateOfBirth" runat="server" Text="Date Of Birth:" AssociatedControlID="dataDateOfBirth" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataDateOfBirth" Text='<%# Bind("DateOfBirth", "{0:dd-MMM-yyyy}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataDateOfBirth" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataPrescribingDoctor" runat="server" Text="Prescribing Doctor:" AssociatedControlID="dataPrescribingDoctor" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataPrescribingDoctor" Text='<%# Bind("PrescribingDoctor") %>' MaxLength="100"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataVat" runat="server" Text="Vat:" AssociatedControlID="dataVat" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataVat" Text='<%# Bind("Vat") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataVat" runat="server" Display="Dynamic" ControlToValidate="dataVat" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataVat" runat="server" Display="Dynamic" ControlToValidate="dataVat" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataAmount" runat="server" Text="Amount:" AssociatedControlID="dataAmount" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAmount" Text='<%# Bind("Amount") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataAmount" runat="server" Display="Dynamic" ControlToValidate="dataAmount" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataAmount" runat="server" Display="Dynamic" ControlToValidate="dataAmount" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataTotalAmount" runat="server" Text="Total Amount:" AssociatedControlID="dataTotalAmount" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataTotalAmount" Text='<%# Bind("TotalAmount") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataTotalAmount" runat="server" Display="Dynamic" ControlToValidate="dataTotalAmount" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataTotalAmount" runat="server" Display="Dynamic" ControlToValidate="dataTotalAmount" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataSalesPerson" runat="server" Text="Sales Person:" AssociatedControlID="dataSalesPerson" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataSalesPerson" DataSourceID="SalesPersonWebUserDataSource" DataTextField="Name" DataValueField="UserId" SelectedValue='<%# Bind("SalesPerson") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:WebUserDataSource ID="SalesPersonWebUserDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataExchangeRate" runat="server" Text="Exchange Rate:" AssociatedControlID="dataExchangeRate" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataExchangeRate" Text='<%# Bind("ExchangeRate") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataExchangeRate" runat="server" Display="Dynamic" ControlToValidate="dataExchangeRate" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIsVoid" runat="server" Text="Is Void:" AssociatedControlID="dataIsVoid" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataIsVoid" SelectedValue='<%# Bind("IsVoid") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Yes" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem><asp:ListItem Value="" Text="Pick ..." Enabled="False"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataRemark" runat="server" Text="Remark:" AssociatedControlID="dataRemark" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataRemark" Text='<%# Bind("Remark") %>' MaxLength="250"></asp:TextBox>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


